<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Semesters: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'stylesheet' %>
</head>
<body>	
	<div id="site-container">
	<div id="header-container">
		<div id="header">
			<a href="/">
			<img src="../images/site/banner.jpg" alt="University of Maryland" class="banner">
			</a>
			<a href="/" id="department-container">
			<img src="../images/site/department-of-computer-science.png" alt="Department of Computer Science" class="department">
			</a>
		</div>
		
		<div id="main-nav" >
			<ul>
			<% if session[:user] != nil %>
				<% if session[:user].user_type == "admin" %>
					<li><a href="/semesters/">View Semester List</a> | </li> 
				<% else %>
					<li><a href="/semesters/">Apply for a TA postion</a> | </li>
				<% end %>
				<li><%= link_to "#{session[:user].first_name}'s account", {:controller => "users", :action => "show", :id =>session[:user].id} %> | </li>
				<li><%= link_to "logout", {:controller => "users", :action => "logout"} %></li>
			<% else %>
				<li><a href="/semesters/">Apply for a TA postion</a> | </li>
				<li><%= link_to "login", {:controller => "users", :action => "login"} %></li>
			<% end %>
			</ul>
		</div>
		
			
	</div>
		
		<div id="body-container-home">
			<%= yield %>
		</div>
		<div id="clearFooter">
			<a href="/semesters/">Apply for a TA postion</a></li>
		</div>
	</div>
	</div>
	<div id="footer">
	<fieldset>
				<legend><b>Developer Information </b></legend>
				<% if session[:user] != nil %>
					User ID: 	<%= session[:user].id %><br />
					User Type: 	<%= session[:user].user_type %><br />
					Email: 		<%= session[:user].email %><br />
					Password: 	<%= session[:user].password %><br />
				<% else %>
					No user is logged in.
				<% end %>
			</fieldset>
	</div>
</body>
</html>